import request from '@/utils/request'
// 渲染页面
export const getSermailboxData=(params)=>{
  return request({
    url:'service/mailbox',
    method:'get',
    params
  })
}

// 删除
export const getSermailboxDel=(id)=>{
  return request({
    url:`service/mailbox/${id}`,
    method:'DELETE'
  })
}
// 回显
export const getSermailboxRevert=(id)=>{
  return request({
    url:`service/mailbox/${id}`,
    method:'get'
  })
}
// 修改modify
export const getSermailboxModify=(data)=>{
  return request({
    url:`service/mailbox/${data.id}`,
    method:'put',
    data
  })
}